<?php
include 'db.php';

//that's the crap that has to go to 'pricelists' table
$pricelist_id = $_POST['pricelist_id'];
$pricelist_name = $_POST['pricelist_name'];
$pricelist_markup = $_POST['pricelist_markup'];
$pricelist_replacement_discount = $_POST['pricelist_replacement_discount'];
$pricelist_round_to = $_POST['pricelist_round_to'];
$pricelist_facility = $_POST['pricelist_facility'];

//$pricelist_update = $db_corp->prepare( "UPDATE pricelists SET pricelist_name, pricelist_last_update, markup_over_build_cost, replacement_discount, round_to, production_location_id VALUES( ?, NOW(), ?, ?, ?, ? )" );
$pricelist_update->bind_param( 'sdddii', $pricelist_name, $pricelist_markup, $pricelist_replacement_discount, $pricelist_round_to, $pricelist_facility, $pricelist_id );
$pricelist_update->execute();
$pricelist_update->close();

include 'view_pricelists.php';

?>